<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>My Project: InPerAlb.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_in_per_alb_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">InPerAlb.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface do modulo Percistencia de Albuns.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_in_vet_bit_8h_source.html">InVetBit.h</a>&quot;</code><br/>
</div>
<p><a href="_in_per_alb_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_album___m.html">Album_M</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis.  <a href="struct_album___m.html#details">More...</a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:acd23ca22e9d8491e94a5e37708014403"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd23ca22e9d8491e94a5e37708014403"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ExtPA</b>&#160;&#160;&#160;extern</td></tr>
<tr class="memitem:a487ee6f26b5be0b642961792a4e8526f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a487ee6f26b5be0b642961792a4e8526f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ARQUIVO_PA</b>&#160;&#160;&#160;&quot;Album.txt&quot;</td></tr>
<tr class="memitem:a150408e845944fc38f41310d52cca090"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a150408e845944fc38f41310d52cca090"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NARQUIVO_PA</b>&#160;&#160;&#160;&quot;Album&quot;</td></tr>
<tr class="memitem:a174a24d8ff199ece5b769eed06847bd4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a174a24d8ff199ece5b769eed06847bd4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TAMANHOREG_PA</b>&#160;&#160;&#160;74</td></tr>
<tr class="memitem:a9d923234299b55b7a713de96336e0b71"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d923234299b55b7a713de96336e0b71"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EXTENSAO_PA</b>&#160;&#160;&#160;&quot;.txt&quot;</td></tr>
<tr class="memitem:aa46d0dad0678c152921c026b183511e1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa46d0dad0678c152921c026b183511e1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>VARIAVELCONTROLE_PA</b>&#160;&#160;&#160;'$'</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ac5b436aa7bd8e5e7759cdddab7050f73"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5b436aa7bd8e5e7759cdddab7050f73"></a>
typedef struct <a class="el" href="struct_album___m.html">Album_M</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Album_PA</b></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a292a4ffd12dd0df90a36177ae181eb80"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a292a4ffd12dd0df90a36177ae181eb80"></a>
ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><b>PegaAlbum_PA</b> (const char *CpfPass, const char *, <a class="el" href="struct_album___m.html">Album_PA</a> *)</td></tr>
<tr class="memitem:a84e97f4ed720b6929969a4683d4781ba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84e97f4ed720b6929969a4683d4781ba"></a>
ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><b>AtualizaAlbum_PA</b> (<a class="el" href="struct_album___m.html">Album_PA</a> *)</td></tr>
<tr class="memitem:a4faf592f36ad856008d6bf71a1cf2c37"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4faf592f36ad856008d6bf71a1cf2c37"></a>
ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><b>DeletaAlbum_PA</b> (const char *, const char *)</td></tr>
<tr class="memitem:a28ad5d230f61d0f9a68a627d4c2d83e9"><td class="memItemLeft" align="right" valign="top">ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_alb_8h.html#a28ad5d230f61d0f9a68a627d4c2d83e9">AddAlbum_PA</a> (<a class="el" href="struct_album___m.html">Album_PA</a> *)</td></tr>
<tr class="memdesc:a28ad5d230f61d0f9a68a627d4c2d83e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por adicionar um novo album ao banco de dados.  <a href="#a28ad5d230f61d0f9a68a627d4c2d83e9"></a><br/></td></tr>
<tr class="memitem:a7a629056238ea49959532dbe6c187f0e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_alb_8h.html#a7a629056238ea49959532dbe6c187f0e">RetiraFoto_PA</a> (const char *CpfPass, const char *CodigPass)</td></tr>
<tr class="memdesc:a7a629056238ea49959532dbe6c187f0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por decrementar o numero de fotos desse usuario.  <a href="#a7a629056238ea49959532dbe6c187f0e"></a><br/></td></tr>
<tr class="memitem:a4a65699bbdad6224638711808be4c809"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a65699bbdad6224638711808be4c809"></a>
ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><b>AddFoto_PA</b> (const char *CpfPass, const char *CodigPass)</td></tr>
<tr class="memitem:a173319c431ab6c8c27520c7e91de772f"><td class="memItemLeft" align="right" valign="top">ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_alb_8h.html#a173319c431ab6c8c27520c7e91de772f">NumeroFotosAlbum_PA</a> (const char *CpfPass, const char *CodigPass)</td></tr>
<tr class="memdesc:a173319c431ab6c8c27520c7e91de772f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por retornar o numero de fotos desse usuario.  <a href="#a173319c431ab6c8c27520c7e91de772f"></a><br/></td></tr>
<tr class="memitem:aa6cf5c9f4e48810b2ab15ad0ec98ab97"><td class="memItemLeft" align="right" valign="top">ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_alb_8h.html#aa6cf5c9f4e48810b2ab15ad0ec98ab97">ListaPublicos_PA</a> (<a class="el" href="struct_album___m.html">Album_PA</a> *AlbumPass, int Pulo)</td></tr>
<tr class="memdesc:aa6cf5c9f4e48810b2ab15ad0ec98ab97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por atualizar os dados do usuario com os dados da struct que foi passada.  <a href="#aa6cf5c9f4e48810b2ab15ad0ec98ab97"></a><br/></td></tr>
<tr class="memitem:a5f714dadbe5e6216b78fcde303210355"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f714dadbe5e6216b78fcde303210355"></a>
ExtPA int&#160;</td><td class="memItemRight" valign="bottom"><b>ListaAlbuns_PA</b> (<a class="el" href="struct_album___m.html">Album_PA</a> *AlbumPass, int Pulo, const char *CpfPass)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Interface do modulo Percistencia de Albuns. </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a28ad5d230f61d0f9a68a627d4c2d83e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ExtPF int AddAlbum_PA </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_album___m.html">Album_PA</a> *&#160;</td>
          <td class="paramname"><em>NovoAlbum</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por adicionar um novo album ao banco de dados. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">NovoAlbum</td><td>: um Album prechido para gravacao. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um int que funciona com "bool":<br/>
 PO - Album adcionado com sucesso.<br/>
 -1 - Erro de Banco de dados.<br/>
 -2 - Album ja existente. </dd></dl>

</div>
</div>
<a class="anchor" id="aa6cf5c9f4e48810b2ab15ad0ec98ab97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ExtPU int ListaPublicos_PA </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_album___m.html">Album_PA</a> *&#160;</td>
          <td class="paramname"><em>AlbumPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Pulo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por atualizar os dados do usuario com os dados da struct que foi passada. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">AlbumPass</td><td>: uma struct que sera prechida com os dados do primerio usuario publico. </td></tr>
    <tr><td class="paramname">Pulo</td><td>: da um pulo para 1 registro depois o ultimo que foi pego. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um int que funciona como contador:<br/>
 PO - A posic do regitro pego. <br/>
 -1 - Erro de Banco de dados.<br/>
 -2 - Nao a mais Publicos. </dd></dl>

</div>
</div>
<a class="anchor" id="a173319c431ab6c8c27520c7e91de772f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ExtPF int NumeroFotosAlbum_PA </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CpfPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CodigPass</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por retornar o numero de fotos desse usuario. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">CpfPass</td><td>: O cpf do ususario dono o album pertence. </td></tr>
    <tr><td class="paramname">CodigPass</td><td>: O codigo do album cujo sera adcionado uma foto. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um int que funciona como contador:<br/>
 PO - O numero de fotos do usuario.<br/>
 -1 - Erro de Banco de dados.<br/>
 -2 - Album nao existente. </dd></dl>

</div>
</div>
<a class="anchor" id="a7a629056238ea49959532dbe6c187f0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ExtPF int RetiraFoto_PA </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CpfPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CodigPass</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por decrementar o numero de fotos desse usuario. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">CpfPass</td><td>: O cpf do ususario dono o album pertence. </td></tr>
    <tr><td class="paramname">CodigPass</td><td>: O codigo do album cujo sera removida uma foto. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um int que funciona como contador:<br/>
 PO - O numero de fotos do usuario atualizado. <br/>
 -1 - Erro de Banco de dados.<br/>
 -2 - Album nao existente. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_in_per_alb_8h.html">InPerAlb.h</a></li>
    <li class="footer">Generated on Wed Jul 4 2012 11:44:30 for My Project by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>
